package com.waves.search.vo.user;

import lombok.Data;
import lombok.experimental.FieldNameConstants;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

/**
 * @author Eden
 * @date 2024/10/14 21:16
 **/
@Data
@Document(indexName = "user")
@FieldNameConstants
public class UserEsVO {


    private Long id;

    /**
     * 用户昵称
     */
    private String name;

    /**
     * 用户头像
     */
    private String avatar;

    /**
     * 性别 1为男性，2为女性
     */
    private Integer sex;

    /**
     * 微信openid用户标识
     */
    @Field(value = "open_id")
    private String openId;

    /**
     * 上下线状态 1在线 2离线
     */
    @Field(value = "active_status")
    private Integer activeStatus;

    /**
     * 最后上下线时间
     */
    @Field(value = "last_opt_time")
    private String lastOptTime;

    /**
     * 最后上下线时间
     */
    @Field(value = "ip_info")
    private String ipInfo;

    /**
     * 佩戴的徽章id
     */
    @Field(value = "item_id")
    private Long itemId;

    /**
     * 用户状态 0正常 1拉黑
     */
    @Field(value = "status")
    private Integer status;

    /**
     * 被关注数量（粉丝数)
     */
    @Field(value = "followed")
    private Long followed;

    /**
     * 关注数
     */
    @Field(value = "follow")
    private Long follow;

    @Field(value = "created_by")
    private Long createdBy;

    @Field(value = "created_time")
    private Long createdTime;

    @Field(value = "created_name")
    private String createdName;

    @Field(value = "updated_by")
    private Long updatedBy;

    @Field(value = "updated_time")
    private Long updatedTime;

    @Field(value = "updated_name")
    private String updatedName;

    @Field(value = "del_flag")
    private Integer delFlag;

}
